package com.vfmall.mapper;


import com.vfmall.annotation.AutoFill;
import com.vfmall.entity.AddressBook;
import com.vfmall.enumeration.OperationType;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AddressBookMapper {


    List<AddressBook> list(AddressBook addressBook);

    void save(AddressBook addressBook);

    @Select("select * from address_book where id=#{id}")
     AddressBook getById(Long id);

    void update(AddressBook addressBook);

    void updateIsDefaultByUserId(AddressBook addressBook);

    @Select("delete from address_book where id= #{id}")
    void deleteById(Long id);
}
